package com.finance.borrower;



import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 银行卡信息
 */
@Entity
@Table(name = "bank_card_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BankCardInfo implements Serializable {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 标识
     */
    private String code;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 银行名称
     */
    private String bankName;

    /**
     * 银行卡卡号
     */
    private String cardNumber;

    /**
     * 预留电话
     */
    private String phone;

    /**
     * 是否指定放款 1:否 2:是
     */
    private Integer isLoan;

    /**
     * 是否指定扣款 1:否 2:是
     */
    private Integer isWithhold;

    /**
     * 是否真实 1:是 2:否
     */
    private Integer isTrue;

    /**
     * 借款人信息标识
     */
    private String borrowerInfoCode;







    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_BANK_NAME = "bank_name";

    public static final String COL_CARD_NUMBER = "card_number";

    public static final String COL_PHONE = "phone";

    public static final String COL_IS_LOAN = "is_loan";

    public static final String COL_IS_WITHHOLD = "is_withhold";

    public static final String COL_IS_TRUE = "is_true";

    public static final String COL_BORROWER_INFO_CODE = "borrower_info_code";
}